package com.wtkl.mapper;

import com.wtkl.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {
    /**
     * 负责人：真正的man
     * 功能：登录
     *1.先查询account存在不
     *2.存在则查密码是否正确
     *3.密码正确则返回1登录成功，错则返回0密码错误，返回-1则是账号不存在
     *4.
     *参数：account，password，
     *返回值：-1 0 1
     */

    user  login1(@Param("account") String account,@Param("password") String password);
    user  login2(@Param("account") String account, @Param("password") String password);
    user  login3(@Param("account") String account,@Param("password") String password);


     public List<selectStudent> stuSelectInformation(String id);

     public List<leave> stuSelectLeave(String id);

     public List<notice> stuSelectNotice();

     public Integer stuAddLeave(leave leave);

     public void stuDeleteLeave(@Param("ids") int[] ids);

//宿管，管理员查询学生信息
     public List<selectStudent> dorSelectInformation(selectStudentData data);

     public Integer addNotice(notice notice);

     public List<leave> SelectLeave(leave leave);

     List<build> selectBuild(build build);

    List<dormitoryAdmin> selectDormitoryAdmin(dormitoryAdmin dormitory);

    List<dormitory> selectDormitory(dormitory dormitory);

}
